package com.iotproject.forumservice.entity.vo;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

//一级评论与二级评论列表实体类
@Data
public class ReplyQuestionVo {

    @ApiModelProperty(value = "ID")
    @TableId(value = "id", type = IdType.ID_WORKER_STR)
    private String id;

    @ApiModelProperty(value = "评论所属问题ID")
    private String questionId;

    @ApiModelProperty(value = "评论所属一级ID")
    private String parentId;

    @ApiModelProperty(value = "评论还是回复")
    private Integer type;

    @ApiModelProperty(value = "操作人ID")
    private String creatorId;

    @ApiModelProperty(value = "接收人ID")
    private String recipientId;

    @ApiModelProperty(value = "简介(也可以理解为内容)")
    private String description;

    @ApiModelProperty(value = "评论数")
    private Long commentCount;

    @ApiModelProperty(value = "点赞数")
    private Long likeCount;

    @ApiModelProperty(value = "操作者昵称")
    private String creatorNickname;

    @ApiModelProperty(value = "操作者头像")
    private String creatorAvatar;

    //这个签名先传过去，之后可能要用到(教师端)
    @ApiModelProperty(value = "操作者签名")
    private String creatorSign;

    @ApiModelProperty(value = "接收者昵称")
    private String recipientNickname;

    @ApiModelProperty(value = "接收者头像")
    private String recipientAvatar;

    //这个签名先传过去，之后可能要用到(教师端)
    @ApiModelProperty(value = "接收者签名")
    private String recipientSign;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date gmtModified;

    @ApiModelProperty(value = "是否显示二级列表")
    private Boolean show;

}
